package business.report.impl;

import business.report.WaterwayTransportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.WaterwayTransport;
import report.domain.WaterwayTransportCriteria;
import report.mapper.WaterwayTransportMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/20.
 */
@Service(value = "wtService")
public class WaterwayTransportServiceImpl implements WaterwayTransportService{
    @Autowired
    WaterwayTransportMapper waterwayTransportMapper;

    @Override
    public List<WaterwayTransport> getWaterwayTransport() {
        WaterwayTransportCriteria criteria = new WaterwayTransportCriteria();
        criteria.createCriteria().getAllCriteria();
        return waterwayTransportMapper.selectByExample(criteria);
    }
}
